<template>
    <div class="app-container">
        <!-- 表格 -->
        <el-table
        :data="list"
        border
        fit
        highlight-current-row>

        <el-table-column
            label="序号"
            width="70"
            align="center">
            <template slot-scope="scope">
            {{ scope.$index + 1 }}
            </template>
        </el-table-column>
        <el-table-column prop="staffId" label="资产申请者编号" width="200"/>
        <!-- <el-table-column prop="name" label="资产申请者名称" /> -->
        <el-table-column prop="title" label="资产名称" />
        <el-table-column prop="des" label="资产描述" />
        <el-table-column prop="useMethod" label="资产用途" />
        <el-table-column prop="gmtCreate" label="申请时间" width="160"/>
        </el-table>

    </div>
</template>
<script>
//引入 js 文件
import asset from '@/api/manager/asset'
export default {
    data(){return{
            list:null,//查询之后接口返回集合
        }
    },
    created(){this.getList()
    },
    methods:{getList(){ asset.getAssetApplyListPageAll()
            .then(response => {
               console.log(response)
                this.list = response.data.items
            }).catch(error => {
                console.log(error)
            })}
    }
}
</script>
